package me.zhanshi123.anger

import com.google.common.collect.Maps
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin

class Main : JavaPlugin() {

    override fun onEnable() {
        AngerInstance.instance = this
        AngerInstance.configManager = ConfigManager()
        Bukkit.getPluginManager().registerEvents(Listeners, this)
        Bukkit.getConsoleSender().sendMessage("§aHello world. This is a message sent from Kotlin")
    }

    override fun onDisable() {

    }

}

object AngerInstance {
    lateinit var instance: Main
    lateinit var configManager: ConfigManager
    var dataMap: Map<String, AngerPlayer> = Maps.newHashMap()
}

data class AngerPlayer(val name: String, val value: Int = 0, val jailed: Boolean = false) {

}